-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: deprecate RemoveOrgUser
in favor of RemoveOrgUsers
#10951
base: master
Are you sure you want to change the base?
Conversation
@Dschoordsch I've found a really confusing issue. The symptom is that with my changes in this PR, resolving of an For example, this resolves fine and returns a proper {
viewer {
id
organization(orgId: "xxxx") {
organizationUsers {
edges {
node {
userId
}
}
}
}
}
} However, if you try to resolve a {
viewer {
id
organization(orgId: "xxxx") {
organizationUsers {
edges {
node {
user {
preferredName
}
}
}
}
}
}
} Returns: {
"errors": [
{
"message": "Cannot return null for non-nullable field OrganizationUser.user.",
"locations": [
{
"line": 8,
"column": 13
}
],
"path": [
"viewer",
"organization",
"organizationUsers",
"edges",
0,
"node",
"user"
]
}
],
"data": {
"viewer": {
"id": "google-oauth2|xxxx",
"organization": null
}
}
} More interestingly, I've nailed down the issue to the removal of I suspect there's something to do with how the GraphQL schema is generated/updated. I remember you had some work around this area. Do you have some insights here? Thank you soooo much! |
@tianrunhe Without looking into it in detail, I suspect we're not registering a necessary type anymore. What happens is that the old graphql resolvers (the ones not in the private/public subdirectories) are not imported automatically. So we probably indirectly imported a necessary resolver (I guess the one for User) through |
@Dschoordsch Thanks for that! I manually added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Deprecate
RemoveOrgUser
in favor ofRemoveOrgUsers
Final checklist